#include <iostream>
#include <string>

#include "searcher.hpp"

static const std::string input_src_path = "./data/raw_html/raw.txt";

int main()
{
    ns_searcher::searcher searcher;
    searcher.init_searcher(input_src_path);

    std::string query;
    std::string json_string;
    while(true)
    {
        std::cout << "please enter you search query : ";
        std::getline(std::cin, query);
        searcher.search(query, &json_string);
        std::cout << json_string << std::endl;
        std::cout << query << std::endl;
    }
}
